<!-- Display for each match -->

<tr>
  <td>
    <%=image_tag "leagues/" + match.league.cid.to_s + ".png"%>
  </td>
  <td colspan="3">
    <table width="100%" class="no-lister">
      <tr>
        <td 
          onmouseover="this.addClassName('team-hover')"
          onmouseout="this.removeClassName('team-hover')"
          onclick="selectTeam(this,<%= match.id %>,<%= match.home_team.id %>)"
          id="<%= dom_id match %>_<%= dom_id match.home_team %>"
          width="30%"
          >
          <table width="100%" class="no-lister">
            <tr>
              <td width="30%">
                <%= team_detail match.home_team %>
              </td>
            </tr>
          </table>
        </td>
        <td width="40%">
        	<%= point_spread(match,match.home_team) %>
        </td>
        <td
          onmouseover="this.addClassName('team-hover')"
          onmouseout="this.removeClassName('team-hover')"
          onclick="selectTeam(this,<%= match.id %>,<%= match.away_team.id %>)"
          id="<%= dom_id match %>_<%= dom_id match.away_team %>"
          width="30%"
          >
          <table width="100%" class="no-lister">
            <tr>
              <td width="30%">
                <%= team_detail match.away_team %>
                <%= hidden_field_tag "bet[][match_id]",match.id %>
                <%= hidden_field_tag "bet[][team_id]",'',:id=>"bet_match_id_#{match.id}_team_id" %>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
  <td style="font-size:10px">
    <%= format_time match.begin_at,:datetime %>
  </td>
</tr>
<tr>
  <td colspan=5 style="text-align:left">
     <div class="expander-small">
      	<%= render :partial=>'newsfeeds/feed_link',:locals=>{:sid=>match.id}%>
		 <span id="newsfeeds_indicator_<%=match.id%>" style="margin-left:180px;display:none">
	     	<%=image_tag"indicator.gif"%>
	    </span>
	    <div id="render_newsfeeds_layout_<%=match.id%>" style="text-align:left;position:relative;"> 
			
	    </div>
    </div>
	<div class="bottom_border">&nbsp;</div>
	<!-- if the user is in tutorial (first timer), then this link won't show -->
	<% if current_user.hide_howto? %> 
		<div class="expander-small">
	      	<%= render :partial=>'friends_bet/link',:locals=>{:sid=>match.id,:match=>match}%>
			 <span id="friends_bet_indicator_<%=match.id%>" style="margin-left:180px;display:none">
		     	<%=image_tag"indicator.gif"%>
		    </span>
		    <div id="render_friends_bet_layout_<%=match.id%>" style="text-align:left;position:relative;"> 
		    </div>
	    </div>
	<% end %>
  </td>
</tr>
 
